-
Notifications
You must be signed in to change notification settings - Fork 975
[WIP] Use Electron event to set urlbar security state #5501
Conversation
@@ -30,9 +30,8 @@ class UrlBarIcon extends ImmutableComponent { | |||
*/ | |||
get isInsecure () { | |||
return this.props.isHTTPPage && | |||
!this.props.isSecure && | |||
this.props.isSecure === false && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[note] if isSecure is null, we should show neither secure nor insecure
!this.props.active && | ||
this.props.loading === false && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was no longer needed because security state is set to null when the load starts
Requires brave/muon#90 Fix #5238 Auditors: @bsclifton @darkdh Test Plan: 1. go to http://dev.ruby.sh/bpoc.html and it should not show up as secure TODO: add automated test for the hackerone issue
f7e4de5
to
058865a
Compare
@darkdh this seems to cause a problem with https://mixed-script.badssl.com/ - the icon should show up as insecure after scripts are allowed but it still shows up as secure. seems like a timing issue |
@darkdh did you try with the latest electron which is just updated right now? 1.4.24? |
merging for preview-1 builds. |
sorry my bad. It works fine with 1.4.24 |
git rebase -i
to squash commits (if needed).Requires brave/muon#90
Fix #5238
Auditors: @bsclifton @darkdh
Test Plan:
TODO: add automated test for the hackerone issue